package co.crossoft.mapper;

import co.crossoft.domain.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("resourceMapper")
public interface ResourceMapper {
    void deleteByPrimaryKey(String handle);

    void updateResource(Resource record);

    List<Resource> selectByResource(Map parMap);

    List<Resource> resourceIsExist(Map parMap);

    void addResource(Resource record);

    List<Resource> selectOneResourceByHandle(String handle);
}